typedef HRESULT (WINAPI *TD3DXCreateTextureFromFileW)(
  _In_   LPDIRECT3DDEVICE9 pDevice,
  _In_   LPCWSTR pSrcFile,
  _Out_  LPDIRECT3DTEXTURE9 *ppTexture
);

TD3DXCreateTextureFromFileW OldD3DXCreateTextureFromFileW;

DllExport HRESULT cc D3DXCreateTextureFromFileW(
  _In_   LPDIRECT3DDEVICE9 pDevice,
  _In_   LPCWSTR pSrcFile,
  _Out_  LPDIRECT3DTEXTURE9 *ppTexture
)
{
	Log((LPCSTR)pSrcFile, wcslen(pSrcFile));
	//Beep(1000, 100);
	return OldD3DXCreateTextureFromFileW (pDevice, pSrcFile, ppTexture);
}
